<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
	
<%@ taglib prefix="c" uri="/WEB-INF/tlds/c.tld"%>
<%@ taglib prefix="spring" uri="/WEB-INF/tlds/spring.tld"%>
<c:set var="BasePath" value="${pageContext.request.contextPath}"></c:set>
<c:set var="Plugins" value="${pageContext.request.contextPath}/res/plugins"></c:set>	

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>供应商货品价格设置页面</title>

<link href="${Plugins}/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
<script src="${Plugins}/jquery/jquery-1.3.2.min.js"	type="text/javascript"></script>
<link href="${Plugins}/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
<script src="${Plugins}/ligerUI/js/ligerui.min.js" type="text/javascript"></script>
<script type="text/javascript" src="${BasePath}/res/js/ligerCommon.js"></script>

<style type="text/css">
#searchbar{
   margin-bottom: 10px;
   margin-left:15px;
  }
  .navbar {
		height: 20px;
		border-bottom: #E6E6E6 solid 1px;
		line-height: 20px;
	}
.l-button-search {
	width: 50px;
	margin-left: 10px;
	padding-bottom: 2px;
	display: inline;
}
</style>
</head>
<body style="padding:6px; overflow:hidden;">
<div class="navbar">
		<span>您当前的位置：</span>
		商品管理 &gt; 供应商货品价格
</div>

<form action="getToListSelectSupplier.do" method="post" >
<input type="hidden" name="prodNo" id="prodNo" value="${prodSupplierVo.prodNo }">
 
<%--<div id="searchbar"><br>
  供应商名称：<input id="supplierName" name="supplierName" type="text" value="${prodSupplierVo.supplierName}" />
 供应商编号：<input id="account" name="account" type="text" value="${prodSupplierVo.account}" /> 
      <input type="submit" id="btnSearch" value="查询" class="l-button-search" />&nbsp;&nbsp;
      <input type="button" id="btnReset" value="重置" class="l-button-search" />
</div>--%>
</form>

<div id="maingrid" style="margin:0; padding:0"></div>

<script>	
var basePath='${BasePath}';
var grid = null;
 $(function () {
	
 	// 重置
	$("#btnReset").click(function(){
   		$('#searchbar :input').not(':submit, :button, :reset').val('').removeAttr('checked').removeAttr('selected');
	});

	 grid = $("#maingrid").ligerGrid({
            columns: [
            { display: '供应商名称', name: 'supplierName'},
            { display: '供应商编号', name: 'account'},
            { display: '未税成本价', name: 'untaxCostPrice',hide:true},
			{ display: '含税成本价', name: 'taxCostPrice',hide:true},
			{ display: '毛利率(%)', name: 'gcrossMargin',hide:true},
			/* { display: '是否可退货', hide:true,name: 'isReturnedGoos',render:function(rowdata,rowindex,value){
            	var text=null;
                switch(value){
                case 0 :
              	  text="否";
              	  break;
                case 1:
              	  text="是";
              	  break;
                default :
              	  break;
                }
                return text;
            }}, */
            { display: '供应商发货', name: 'isSupDelivery',render:function(rowdata,rowindex,value){
            	var text=null;
                switch(value){
                case 0 :
              	  text="否";
              	  break;
                case 1:
              	  text="是";
              	  break;
                default :
              	  break;
                }
                return text;
            }}
            ], 
            pageSize:30,
            width: '100%',
            height: '100%',
            dataType: 'server', 
            dataAction: 'server',
            pagesizeParmName: 'pageSize',
            parms: [
                    {name: "prodNo", value: "${prodSupplierVo.prodNo }"},
                    /* {name: "supplierName", value:$("#supplierName").val()},
                    {name: "account", value:$("#account").val()} */
            	],
            url: "getAjaxPageFinderProdSupplier.do"
        });
});


</script>

</body>
</html>